import request from '@/utils/request'

// 查询财务支出费用列表
export function listDisburse(query) {
  return request({
    url: '/bill/disburse/list',
    method: 'get',
    params: query
  })
}

// 查询财务支出费用详细
export function getDisburse(id) {
  return request({
    url: '/bill/disburse/' + id,
    method: 'get'
  })
}

// 新增财务支出费用
export function addDisburse(data) {
  return request({
    url: '/bill/disburse',
    method: 'post',
    data: data
  })
}

// 修改财务支出费用
export function updateDisburse(data) {
  return request({
    url: '/bill/disburse',
    method: 'put',
    data: data
  })
}
export function costAudit(data) {
  return request({
    url: '/bill/disburse/costAudit',
    method: 'post',
    data: data
  })
}

// 删除财务支出费用
export function delDisburse(id) {
  return request({
    url: '/bill/disburse/' + id,
    method: 'delete'
  })
}

// 导出财务支出费用
export function exportDisburse(query) {
  return request({
    url: '/bill/disburse/export',
    method: 'get',
    params: query
  })
}
